package com.tjp.eight.ui.fragment.tabhome;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/2/13.
 */
public interface HomeService {
    @GET("first/category")
    Observable<HomeModel> getData();

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/listdata")
    Observable<HomeListModel> loadItemData(@Body RequestBody requestBody);
}
